// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Widgets\Layout\SBox.h"
#include "Windows/AllowWindowsPlatformTypes.h"

/**
 * 
 */
class PYSHELF_API STreeItem_Folder : public SBox
{
public:
	SLATE_BEGIN_ARGS(STreeItem_Folder)
	{}

		SLATE_ARGUMENT(float, widthOverride)
		SLATE_ARGUMENT(float, heightOverride)
		SLATE_ARGUMENT(float, fillRatioTopBottom)
		SLATE_ARGUMENT(float, fillRatioLeftRight)
		SLATE_ARGUMENT(FString, itemText)
	SLATE_END_ARGS()

	/** Constructs this widget with InArgs */
	void Construct(const FArguments& InArgs);

	/* Function Override */
	virtual void OnMouseEnter(const FGeometry& MyGeometry, const FPointerEvent& MouseEvent) override;

	virtual void OnMouseLeave(const FPointerEvent& MouseEvent) override;

private:
	TSharedPtr<STextBlock> pItemText;

	FLinearColor mTextColor_Default{0.577581f, 0.577581f, 0.577581f, 1.f};
	FLinearColor mTextColor_Hover{1.f, 0.502887f, 0.f, 1.f};
};
